﻿<html>
<head>
</head>
<body style="word-wrap: break-word;">
    ﻿

    <link href="mcs_mvi_ui" rel="stylesheet" type="text/css">
    <script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>
    <script src="cvt_jquery.1.7.1.js" type="text/javascript"></script>
    <script src="mcs_CrmRestKit.js" type="text/javascript"></script>
    <script src="mcs_JSON.js" type="text/javascript"></script>
    <script src="cvt_vodUI.js" type="text/javascript"></script>
    <script type="text/javascript">
            $(document).ready(function () {
                //Set up the form
                hideAll();

                //Bind the function to the Search Button
                $("#RequestButton").bind("click", function () {
                    requestVOD();
                });

                //Bind the function to the Search Button
                $("#CheckButton").bind("click", function () {
                    manualCheckForVMR();
                }); 

            });
    </script>


    <div>
        <table id="searchTraits">
            <tbody>
                <tr>
                    <td class="header" colspan="6"><h2 title="Request an On Demand Virtual Medical Room">Request an On Demand Virtual Medical Room </h2></td>
                </tr>
                <tr>
                    <td title="Patient E-mail Address (Required)" class="td_right"><label for="PatientEmailAddressTextBox">Patient E-mail Address </label><span class="required">*</span></td>
                    <td class="td_left" title="Patient E-mail Address (Required)">
                        <input name="patientEmailAddress*" tabindex="2" class="formInputText" id="PatientEmailAddressTextBox" size="16" maxlength="200" aria-required="true" />
                    </td>
                </tr>
            </tbody>
        </table>

    </div>
    
    <div id="buttons" class="info">
        <table id="buttonTable">
            <tbody>
                <tr>
                    <td class="td_left">
                        <button title="Request On Demand VMR" style="width:200px" tabindex="9" id="RequestButton" class="button_normal_gradient">Request On Demand VMR</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>

    <br />
    <div id="searchResults">
        <div id="msgBoxWorking" class="info">
            <table>
                <tbody>
                    <tr>
                        <td title="Working on it.  This may take a few seconds..." rowspan="4" class="message_box_image"><img src="mcs_mvi_loading"></td>
                    </tr>
                    <tr>
                        <td class="infoText">Working on it. This may take a few seconds...</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="msgBoxFailedIntegration" class="info">
            <br />
            <table>
                <tbody>
                    <tr>
                        <td title="Integration errors" rowspan="4" class="message_box_image"><img src="mcs_mvi_error" /></td>
                    </tr>
                    <tr>
                        <td class="header">VMR Creation Failure</td>
                    </tr>
                    <tr>
                        <td class="infoText"><span id="errorText" aria-live="assertive"></span></td>
                    </tr>

                </tbody>
            </table>
        </div>
        <div id="msgBoxFailedValidation" class="info">
            <br />
            <table>
                <tbody>
                    <tr>
                        <td title="Validation errors" rowspan="4" class="message_box_image"><img src="mcs_mvi_error" /></td>
                    </tr>
                    <tr>
                        <td class="header">Email validation error</td>
                    </tr>
                    <tr>
                        <td class="infoText"><span id="validationErrors" aria-live="assertive"></span></td>
                    </tr>

                </tbody>
            </table>
        </div>
        <div id="msgBoxNoResult" class="info">
            <table>
                <tbody>
                    <tr>
                        <td title="No Result Details" rowspan="4" class="message_box_image"><img src="mcs_mvi_error" /></td>
                    </tr>
                    <tr>
                        <td class="infoText"><span id="noResultText" aria-live="assertive"></span></td>
                    </tr>
                    <tr>
                        <td class="td_left">
                            <button title="Check for VMR" style="width:200px" tabindex="9" id="CheckButton" class="button_normal_gradient">Check for VMR Creation</button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="msgBoxSuccess" class="info">

            <table>
                <tbody>
                    <tr>
                        <td title="Success Details" rowspan="4" class="message_box_image"><img src="cvt_checked.png"></td>
                    </tr>
                    <tr>
                        <td class="infoText">The On Demand VMR has been created. Emails have been sent to provider and patient.</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</body>
</html>